#pragma once
#include "Clip.h"
#include <string>
#include <vector>
#include "tinyxml.h"

class ClipManager
{
public:
	static ClipManager getInstance(void);
	~ClipManager(void);

	void destroy(void);
	bool loadFromFile(const std::string& file);
	void registerClip(Clip* pClip, CLIP_TYPE type);
	Clip* retrieveClip(const std::string& name, CLIP_TYPE type);
	const std::string& getVideoFilename(void);
	Clip* retrieveIdleClip(void);
private:
	ClipManager(void);

	std::string mVideo;
	std::vector<Clip*> mIdleClips;
	std::vector<Clip*> mMainClips;
};

